.formContainer {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(24, 144, 255, 0.15);
  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.08);
  animation: slide-down 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  &.collapsed {
    padding: 8px 16px;
    cursor: pointer;

    &:hover {
      box-shadow: 0 4px 12px rgba(24, 144, 255, 0.15);
      transform: translateY(-2px);
    }
  }
}

.formHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.formTip {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #1890ff;
  font-weight: 500;

  span {
    display: flex;
    align-items: center;
    gap: 6px;
  }
}

.collapseIcon {
  font-size: 14px;
  color: #1890ff;
  cursor: pointer;
  transition: transform 0.3s ease;

  &:hover {
    transform: scale(1.2);
  }
}

/* 收缩状态样式 */
.collapsedView {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.collapsedContent {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.collapsedItem {
  display: flex;
  align-items: center;
  gap: 6px;

  .label {
    font-size: 12px;
    color: #595959;
    font-weight: 500;
  }

  .value {
    font-size: 13px;
    color: #1890ff;
    font-weight: 600;
  }
}

.collapsedDivider {
  color: rgba(24, 144, 255, 0.3);
  font-weight: 300;
}

.infoForm {
  width: 100%;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.formItem {
  flex: 1;
  min-width: 200px;
  margin-bottom: 0 !important;

  &:last-child {
    flex: 0;
    min-width: auto;
  }
}

.input {
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(24, 144, 255, 0.2);
  transition: all 0.3s ease;

  &:hover {
    border-color: #40a9ff;
  }

  &:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
  }
}

.submitBtn {
  height: 40px;
  border-radius: 8px;
  padding: 0 24px;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(24, 144, 255, 0.2);
  transition: all 0.3s ease;

  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(24, 144, 255, 0.3);
  }

  &:active {
    transform: translateY(0);
  }
}

/* 下滑动画 */
@keyframes slide-down {
  from {
    opacity: 0;
    max-height: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    max-height: 200px;
    transform: translateY(0);
  }
}

/* 消失动画 */
.formContainer.hiding {
  animation: fade-out 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

@keyframes fade-out {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    max-height: 300px;
  }
  40% {
    opacity: 0.7;
    transform: translateY(-8px) scale(0.99);
  }
  70% {
    opacity: 0.3;
    transform: translateY(-20px) scale(0.97);
  }
  100% {
    opacity: 0;
    transform: translateY(-40px) scale(0.94);
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
}

/* 暗色主题适配 */
:global(.dark) {
  .formContainer {
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    border-color: rgba(24, 144, 255, 0.2);
  }

  .formTip {
    color: #40a9ff;
  }

  .input {
    background-color: #1f1f1f;
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);

    &:hover {
      border-color: #40a9ff;
    }

    &:focus {
      border-color: #1890ff;
    }
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .infoForm {
    flex-direction: column;
  }

  .formItem {
    width: 100%;
    min-width: 100%;
  }
}

